<!DOCTYPE HTML>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - coverage.info</title>
  <style type="text/css">
      LogTitle
      {
        display: block;
        background-color: #b6d7a8;
        padding: 10px;
      }

      p.headerItem
      {
        text-align: left;
        padding-left: 50px;
        font-family: sans-serif;
        font-weight: bold;
        vertical-align: top;
        white-space: nowrap;
      }

      td.headerCovTableHead
      {
        text-align: center;
        padding-right: 6px;
        padding-left: 6px;
        padding-bottom: 0px;
        font-family: sans-serif;
        font-size: 80%;
        white-space: nowrap;
      }

      td.headerItem
      {
        text-align: right;
        padding-right: 6px;
        font-family: sans-serif;
        font-weight: bold;
        vertical-align: top;
        white-space: nowrap;
      }

      td.headerCovTableEntry
      {
        text-align: right;
        color: #284FA8;
        font-family: sans-serif;
        font-weight: bold;
        white-space: nowrap;
        padding-left: 12px;
        padding-right: 4px;
        background-color: #DAE7FE;
      }

      td.headerCovTableEntryLo
      {
        text-align: right;
        color: #000000;
        font-family: sans-serif;
        font-weight: bold;
        white-space: nowrap;
        padding-left: 12px;
        padding-right: 4px;
        background-color: #FF0000;
      }

      td.headerCovTableEntryMed
      {
        text-align: right;
        color: #000000;
        font-family: sans-serif;
        font-weight: bold;
        white-space: nowrap;
        padding-left: 12px;
        padding-right: 4px;
        background-color: #FFEA20;
      }

      td.headerCovTableEntryHi
      {
        text-align: right;
        color: #000000;
        font-family: sans-serif;
        font-weight: bold;
        white-space: nowrap;
        padding-left: 12px;
        padding-right: 4px;
        background-color: #A7FC9D;
      }
    </style>
</head>

<body>
  {% extends 'base.html' %}
  {% load static %}
  {% block body_part %}
  <LogTitle><em style="font-size: 20px;"><b>概况</b></em></LogTitle>
  <br>
  <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="5%"></td>
            <td width="15%" class="headerCovTableHead">Hit</td>
            <td width="15%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
			<td width="50%"></td>
          </tr>
          <tr>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">{{ data_dict.lines.hit }}</td>
            <td class="headerCovTableEntry">{{ data_dict.lines.total }}</td>
            {% if data_dict.lines.coverage >= 90 %}
            <td class="headerCovTableEntryHi">{{ data_dict.lines.coverage }} %</td>
            {% elif data_dict.lines.coverage >= 60  and data_dict.lines.coverage < 90 %}
            <td class="headerCovTableEntryMed">{{ data_dict.lines.coverage }} %</td>
            {% else %}
            <td class="headerCovTableEntryLo">{{ data_dict.lines.coverage }} %</td>
            {% endif %}
          </tr>
          <tr>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">{{ data_dict.functions.hit }}</td>
            <td class="headerCovTableEntry">{{ data_dict.functions.total }}</td>
            {% if data_dict.functions.coverage >= 90 %}
            <td class="headerCovTableEntryHi">{{ data_dict.functions.coverage }} %</td>
            {% elif data_dict.functions.coverage >= 60  and data_dict.functions.coverage < 90 %}
            <td class="headerCovTableEntryMed">{{ data_dict.functions.coverage }} %</td>
            {% else %}
            <td class="headerCovTableEntryLo">{{ data_dict.functions.coverage }} %</td>
            {% endif %}
          </tr>
          <tr><td><img src="{% static 'images/glass.png' %}" width=3
                       height=3 alt=""><br></td></tr>
		  <tr>
            <td class="headerItem">Date:</td>
            <td class="headerCovTableEntry" rowspan="3">{{ data_dict.date_time}}</td>
          </tr>
    </table>
  <br><br>
  <div>
    <p class="headerItem">详情:
      <a href="{{ data_dict.url }}" target="_blank">点此查看</a></p>

  </div>

{% endblock %}
</body>
</html>
